home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / util / Hashtable$Entry.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.6 KB  |  80 lines

  1. package java.util;
  2.  
  3. class Hashtable$Entry<K, V> implements Map.Entry<K, V> {
  4.    int hash;
  5.    K key;
  6.    V value;
  7.    Hashtable$Entry<K, V> next;
  8.  
  9.    protected Hashtable$Entry(int var1, K var2, V var3, Hashtable$Entry<K, V> var4) {
  10.       this.hash = var1;
  11.       this.key = var2;
  12.       this.value = var3;
  13.       this.next = var4;
  14.    }
  15.  
  16.    protected Object clone() {
  17.       return new Hashtable$Entry(this.hash, this.key, this.value, this.next == null ? null : (Hashtable$Entry)this.next.clone());
  18.    }
  19.  
  20.    public K getKey() {
  21.       return this.key;
  22.    }
  23.  
  24.    public V getValue() {
  25.       return this.value;
  26.    }
  27.  
  28.    public V setValue(V var1) {
  29.       if (var1 == null) {
  30.          throw new NullPointerException();
  31.       } else {
  32.          Object var2 = this.value;
  33.          this.value = var1;
  34.          return (V)var2;
  35.       }
  36.    }
  37.  
  38.    public boolean equals(Object var1) {
  39.       if (!(var1 instanceof Map.Entry)) {
  40.          return false;
  41.       } else {
  42.          boolean var10000;
  43.          label38: {
  44.             label27: {
  45.                Map.Entry var2 = (Map.Entry)var1;
  46.                if (this.key == null) {
  47.                   if (var2.getKey() != null) {
  48.                      break label27;
  49.                   }
  50.                } else if (!this.key.equals(var2.getKey())) {
  51.                   break label27;
  52.                }
  53.  
  54.                if (this.value == null) {
  55.                   if (var2.getValue() == null) {
  56.                      break label38;
  57.                   }
  58.                } else if (this.value.equals(var2.getValue())) {
  59.                   break label38;
  60.                }
  61.             }
  62.  
  63.             var10000 = false;
  64.             return var10000;
  65.          }
  66.  
  67.          var10000 = true;
  68.          return var10000;
  69.       }
  70.    }
  71.  
  72.    public int hashCode() {
  73.       return this.hash ^ (this.value == null ? 0 : this.value.hashCode());
  74.    }
  75.  
  76.    public String toString() {
  77.       return this.key.toString() + "=" + this.value.toString();
  78.    }
  79. }
  80.